package game.editer.history;

import game.data.FrameData;

/**
 * 删除帧
 */
class RemoveFrame extends HistoryAction {
	public var frameData:FrameData;

	public function new(frameData:FrameData):Void {
		super();
		this.frameData = frameData;
	}

	override function undo() {
        trace("撤销删除帧：", frameData.frame);
		super.undo();
		EditerStage.timeline.currentFrame = frameData.frame - 1;
		EditerStage.timeline.insertFrame(frameData);
		trace("撤销删除帧：", frameData.frame);
	}
}
